import uuid
from django.db import models


# Create your models here.


class LogModel(models.Model):
    uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
    create_time = models.DateTimeField(auto_now_add=True)
    module = models.CharField(max_length=120)
    cls_choise = [
        (1,"普通"),
        (2,"警告"),
        (3,"错误"),
        (4, "紧急")
    ]
    cls = models.IntegerField(choices=cls_choise,default=1)
    event = models.TextField()
    class Meta:
        db_table = "pj_log"

